<% provide(:title, 'Home') %>

<% if signed_in? %>
  <div class="row" style="width:800px">
    <div style="float:left;margin-left: -100px">
      <aside class="span4">
        <section>
          <%= render 'shared/user_info' %>
        </section>
        <section>
          <%= render 'shared/stats'%>
        </section>
        <section>
          <%= render 'shared/micropost_form' %>
        </section>
      </aside>
    </div>
    <div class="span8" style="float:right;margin-right: 50px">
      <h3>Micropost Feed</h3>
      <%= render 'shared/feed' %>
    </div>
  </div>
<% else %>
  <div class="center hero-unit">
    <h1>Welcome to the Sample App</h1>
    <h2>
      This is the home page for the
      <a href="http://railstutorial.org/">Ruby on Rails Tutorial</a>
      sample application.
    </h2>
    <%= link_to "Sign up now!", signup_path,class: "btn btn-large btn-primary" %>

    <%= form_tag(get_data_path) do %>
      <%= kindeditor_tag :content,"请输入内容 ;) " %>
      <%= submit_tag :保存 %>
    <% end %>
</div>
  <%= link_to image_tag("rails.png", alt: "Rails",size:"64"), 'http://rubyonrails.org/' %>
<% end %>
